Page({
  data: {
    notify: true,
    cacheSize: '12.5MB'
  },
  
  toggleNotify: function(e) {
    this.setData({ notify: e.detail.value });
    wx.showToast({
      title: e.detail.value ? '通知已开启' : '通知已关闭',
      icon: 'success'
    });
  }
});